#ifndef __MYSTRING_H__
#define __MYSTRING_H__
#define MAX 1024
typedef struct string mystring;
struct string
{
    char string[1024];
    int size;

    void (*print)(mystring *obj);
    int (*size1)(mystring *obj);
    int (*isequal)(mystring *obj1,mystring *obj2);
    int (*iscontains)(mystring *obj1,mystring *obj2);
    char* (*atindex)(mystring *obj,int index);
    void (*removestring)(mystring *obj,const char *p);
    void (*insertstring)(mystring *obj1,const char *p,int index);
    int (*toint)(mystring *obj);
    double(*todouble)(mystring *obj);
};


#endif